package com.inool.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.inool.model.Grade;
import com.inool.model.dto.GradeDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GradeMapper extends BaseMapper<Grade> {
    List<GradeDto> pageGrade(Page<GradeDto> page, @Param("studentName") String studentName,
                             @Param("courseName") String courseName);

    List<GradeDto> pageStudentGrade(Page<GradeDto> page,String studentNumber);                             
}    